<?php 

include '../function.php';
$data = file_get_contents('./lagou.html');

$preg = "/<a href=\".+?\" data-lg-tj-id=\".+?\" data-lg-tj-no=\".+?\" data-lg-tj-cid=\"idnull\" class=\"curr\">(.+?)<\/a>/";


$preg = "/data-lg-tj-id=\"(.+?)\"(.+?)data-lg-tj-no=\"(.+?)\"(.+?)data-lg-tj-cid=\"(.+?)\">(.+?)<\/a>/s";


$preg = "/<span class=\"salary\">(.+?)<\/span>.+?<span>(.+?)<\/span>.+?<span>(.+?)<\/span>.+?<span>(.+?)<\/span>.+?<span>(.+?)<\/span>.+?<\/p>/s";

// $preg = "/高级java开发工程师/";


$c = preg_match_all($preg, $data, $out);

var_dump($c,$out);








 ?>
